<template>
    <div>
        <NabTitle title="秒杀活动设置商品"></NabTitle>
        <FlashCreateAndChange :numOrBoo="0" :state="lists" ></FlashCreateAndChange>
    </div>
</template>

<script lang="ts" setup>
    import NabTitle from '@/components/_s_yingxiao/_s_NavTitle.vue'
    import { useRoute } from 'vue-router'
    import { flash } from '@/request/api'  // 进入页面后请求数据传递给子元素
    import FlashCreateAndChange from '@/components/_s_yingxiao/_s_FlashCreateAndChange.vue';
    import { ref } from 'vue';
    const route = useRoute()
    let id = route.query.flashPromotionId as string  //拿到携带而来的id

    // 这个页面是根据id获取数据,在原有数据上进行修改 
    let lists = ref(<any>[])
    flash.flashID(id).then(res=>{
        lists.value = res
    })
    
</script>
 
<style lang="scss" scoped>
    
</style>